﻿/*-----------------------------------------------
// File: UIDUtil.cs
// Description: 
// Author: Shaobing	492057342@qq.com
-----------------------------------------------*/
using UnityEngine;
using System.Collections;

using System.Collections.Generic;

namespace Battle.Engine.util
{
    public class UIDUtil 
    {
        private long uidFactor;

        public UIDUtil() {
            uidFactor = 0L;
        }

        public string GetNewUID(string prefix = "") {
            uidFactor++;
            return prefix + uidFactor.ToString();
        }
        public long GetNewUID_L() {
            uidFactor++;
            return uidFactor;
        }

        public void Clear() {
            uidFactor = 0L;
        }
    }
}
